package com.yu.rpc.core.fault.retry;

import com.yu.rpc.core.model.RPCResponse;

import java.util.concurrent.Callable;

/**
 * 重试策略
 */
public interface RetryStrategy {
    RPCResponse doRetry(Callable<RPCResponse> callable) throws Exception;
}
